package com.ruoyi.check.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.check.mapper.ECheckListFormRenwuMapper;
import com.ruoyi.check.domain.ECheckListFormRenwu;
import com.ruoyi.check.service.IECheckListFormRenwuService;

/**
 * 任务调度Service业务层处理
 * 
 * @author hugh.sun
 * @date 2023-05-24
 */
@Service
public class ECheckListFormRenwuServiceImpl implements IECheckListFormRenwuService 
{
    @Autowired
    private ECheckListFormRenwuMapper eCheckListFormRenwuMapper;

    /**
     * 查询任务调度
     * 
     * @param id 任务调度主键
     * @return 任务调度
     */
    @Override
    public ECheckListFormRenwu selectECheckListFormRenwuById(Long id)
    {
        return eCheckListFormRenwuMapper.selectECheckListFormRenwuById(id);
    }

    /**
     * 查询任务调度列表
     * 
     * @param eCheckListFormRenwu 任务调度
     * @return 任务调度
     */
    @Override
    public List<ECheckListFormRenwu> selectECheckListFormRenwuList(ECheckListFormRenwu eCheckListFormRenwu)
    {
        return eCheckListFormRenwuMapper.selectECheckListFormRenwuList(eCheckListFormRenwu);
    }

    /**
     * 新增任务调度
     * 
     * @param eCheckListFormRenwu 任务调度
     * @return 结果
     */
    @Override
    public int insertECheckListFormRenwu(ECheckListFormRenwu eCheckListFormRenwu)
    {
        eCheckListFormRenwu.setCreateTime(DateUtils.getNowDate());
        return eCheckListFormRenwuMapper.insertECheckListFormRenwu(eCheckListFormRenwu);
    }

    /**
     * 修改任务调度
     * 
     * @param eCheckListFormRenwu 任务调度
     * @return 结果
     */
    @Override
    public int updateECheckListFormRenwu(ECheckListFormRenwu eCheckListFormRenwu)
    {
        return eCheckListFormRenwuMapper.updateECheckListFormRenwu(eCheckListFormRenwu);
    }

    /**
     * 批量删除任务调度
     * 
     * @param ids 需要删除的任务调度主键
     * @return 结果
     */
    @Override
    public int deleteECheckListFormRenwuByIds(Long[] ids)
    {
        return eCheckListFormRenwuMapper.deleteECheckListFormRenwuByIds(ids);
    }

    /**
     * 删除任务调度信息
     * 
     * @param id 任务调度主键
     * @return 结果
     */
    @Override
    public int deleteECheckListFormRenwuById(Long id)
    {
        return eCheckListFormRenwuMapper.deleteECheckListFormRenwuById(id);
    }
}
